<?php
spl_autoload_register(function ($className){
   include str_replace("\\","/", $className. ".php");
});

$imooc = new models\Imooc();
$imooc->nice();



class Person{

    public static $hand = "手";
    public static $foot = "脚";


    public $a = 1;

    public static function work(){
        echo self::$hand;
        return "单纯的工作";
    }

}

class Imooc extends Person
{
    public function play(){
        echo parent::work();
    }
}

Person::work();
$imooc = new Imooc();
$imooc->play();















































